package com.yh.csx.bsf.ods;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.yh.csx.bsf.health.config.WarnProperties;
import com.yh.csx.bsf.health.warn.WarnProvider;


@Configuration
@ConditionalOnProperty(name = "bsf.message.dingding.enabled", havingValue = "true")
@EnableConfigurationProperties({  WarnProperties.class })
public class WarnConfiguration {

	@Bean(destroyMethod = "close")
	public WarnProvider dingdingWarn()
	{
		return new WarnProvider();
	}
}
